export function generateCaptcha() {
	let captcha = '';
	const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkllmopqrstuvwyz';
	const charLength = chars.length;

	for (let i = 0; i < 5; i++) {
		captcha += chars.charAt(Math.floor(Math.random() * charLength));
	}

	return captcha;
};
//导出
module.exports = {
	generateCaptcha: generateCaptcha
}